﻿<%@ Page Language="vb" MasterPageFile="~/template/PSP/Master/Default.Master" AutoEventWireup="false" CodeBehind="Search.aspx.vb" Inherits="MeoTom.Web.Blog.Search" %>
<%@ OutputCache Duration="900" VaryByParam="none" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ctph" Runat="Server">
<div class="content-post fl">
    <asp:PlaceHolder ID="pnlControl" runat="server"></asp:PlaceHolder>
    <h2>Kết quả tìm kiếm</h2>
    <div class="hr fl">&nbsp;</div>
    <asp:ListView ID="lstArticle" runat="server" DataSourceID="lqDataSource">
        <LayoutTemplate>
            <table runat="server" id="itemPlaceholderContainer">
              <tr>
                <td><div runat="server" id="itemPlaceholder"></div></td>
              </tr>
            </table>
        </LayoutTemplate>        
        <ItemTemplate>
            <%#GenHtml(Eval("ArticlesID"), Eval("Title"), Eval("Abstract"), Eval("TotalComment"), Eval("ViewCount"), Eval("ArticlePath"), Eval("IsMedia"), Eval("IsPicture"), Eval("ReleaseDate"), Eval("UserName"), Eval("PostVisible"))%>               
            <script language="javascript" type="text/javascript">
                Util.writeCatName(<%#Eval("ArticlesID")%>);
            </script>
        </ItemTemplate>
    </asp:ListView>

    <asp:Label ID="lblError" style="margin-top:10px;font-size:12px;width:100%;font-weight:bold;text-align:center;float:left;" runat="server" Text="Không tìm thấy kết quả theo yêu cầu !!!" Visible="false"></asp:Label>           
    <div class="post-footer">
        <asp:DataPager ID="dtPgArticle" runat="server" PagedControlID="lstArticle" PageSize="10" QueryStringField="Page">
            <Fields>               
                <asp:NumericPagerField ButtonType="Link" />
            </Fields>
        </asp:DataPager>
        <asp:LinqDataSource ID="lqDataSource" runat="server">
        </asp:LinqDataSource>
    </div>
</div>
</asp:Content>